import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('./Home.vue'),
    name: 'Home'
  },
  {
    path: '/login',
    component: () => import('./Login.vue'),
    name: 'Login'
  }
]
const router = createRouter({
  routes,
  history: createWebHashHistory(),
})
export default router